package com.rui.state.obj;


import com.rui.state.model.Context;

/**
 * @Description: 开门状态
 * @Author: ZhangRui
 * @Date: 2023/3/3 15:35
 * @Version: 1.0
 */
public class OpenState extends LiftState {
    @Override
    public void open() {
        System.out.println("电梯门打开了");
    }

    @Override
    public void close() {
        super.context.setLiftState(Context.CLOSE_STATE);
        super.context.close();
    }

    @Override
    public void run() {
    }

    @Override
    public void stop() {
    }
}
